-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react): Convert third party auth 'Set password' page to React #18044
Conversation
@@ -128,7 +128,7 @@ const getReactRouteGroups = (showReactApp, reactRoute) => { | |||
'post_verify/third_party_auth/callback', | |||
'post_verify/third_party_auth/set_password', | |||
]), | |||
fullProdRollout: false, | |||
fullProdRollout: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't roll out until we also turn the feature flag on. I'll double check that's set up properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR on SRE side: https://github.com/mozilla-it/webservices-infra/pull/3382
packages/fxa-settings/src/pages/PostVerify/SetPassword/container.tsx
Outdated
Show resolved
Hide resolved
6f4e0d0
to
13a73ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem with existing strings. There is an empty .ftl file being added, not sure if there should be strings there.
packages/fxa-settings/src/pages/PostVerify/SetPassword/container.tsx
Outdated
Show resolved
Hide resolved
7d3d4d9
to
ae79fb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good - let's get it up for testing/QA on stage!
Because: * There are data-sharing problems with this page currently being on Backbone while other pages in the flow are in React, causing a double sign-in for all 'Set password' flows, plus the inability to sign into Sync and maintain CWTS choices for desktop oauth * We want to move completely over from Backbone to React This commit: * Creates 'post_verify/third_party_auth/set_password' page in React with container component * Sends web channel messages up to Sync after password create success * Shares form logic with Signup, includes useSyncEngine hook for DRYness * Changes InlineRecoveryKeySetup to check local storage instead of location state, which prevents needing to prop drill as users should always be signed in and these values available in local storage on this page * Returns authPW and unwrapBKey from create password in auth-client closes FXA-6651
Because:
This commit:
closes FXA-6651
TODO: check that this works rebased on Vijay's branch, unit tests for SetPassword + SetPassword container
**I propose creating a follow up issue for moving some tests out from Signup/Signup container and into FormSetupAccount/useSyncEngines and creating stories for FormSetupAccount then, the diff is already large and we do have coverage for these, they're just not in their refactored components. **